package com.xiaoze.entity;

import java.io.Serializable;

/**
 * @author xiaoze
 * @date 2021/12/22
 */
public class SensorReading implements Serializable {

    private static final long serialVersionUID = 8429806042692107654L;

    private String id;

    private Long timeNum;

    private Double temperature;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTimeNum() {
        return timeNum;
    }

    public void setTimeNum(Long timeNum) {
        this.timeNum = timeNum;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public SensorReading(String id, Long timeNum, Double temperature) {
        this.id = id;
        this.timeNum = timeNum;
        this.temperature = temperature;
    }

    public SensorReading() {
    }

    @Override
    public String toString() {
        return "SensorReading{" +
                "id='" + id + '\'' +
                ", timeNum=" + timeNum +
                ", temperature=" + temperature +
                '}';
    }
}